package hyl.core.conf;

import java.util.HashMap;
import java.util.Map;

import hyl.core.Amy;

public abstract class AMap {
	protected Map<String, String> pp = new HashMap<String, String>();

	public void clean() {
		pp.clear();
	}

	public void load(String filename) {

		MyConfig.loadIni(filename, Amy.charset, pp);

	}

	public void load(Map<String, String> p1) {
		this.pp = p1;
	}

	public String set(String key, String value) {
		return pp.put(key, value);
	}

	public String get(String key) {
		return pp.get(key);
	}

	public Map<String, String> getAll() {
		return pp;
	}
}
